package com.gg.user.gguser.service;

import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface GgBusinessOpportunityService {

    // 增加
    Object addBusiness(HttpServletResponse response, HttpServletRequest request, Integer id) throws Exception;

    // 移除 商机移入信息
    Object removebusiness(HttpServletResponse response, HttpServletRequest request, Integer id) throws Exception;

    // 修改
    Object updateBusiness();

    // 查询
    Object getBusiness(HttpServletResponse response, HttpServletRequest request,Integer page,Integer pageNumber,String name, Integer type,Integer state,String remarks) throws Exception;

    // 删除
    Object delectBusiness(HttpServletResponse response, HttpServletRequest request,Integer id) throws Exception;

    // 增加信息
    Object addBusinessAll(HttpServletResponse response, HttpServletRequest request,String name,String ggBoNextTime, String sex, String position, String phone, String mailbox,String qq, String weChat,String provid, String cityid,String areaid,String address,Integer level,Integer state,String remarks,String username,String fax,String contact,String zipcode,String website,String source) throws Exception;

    // 查看商机详情
    Object getBusinessSelectItems(HttpServletResponse response, HttpServletRequest request,String token) throws IOException;

    // 修改信息
    Object updateBusiness(HttpServletResponse response, HttpServletRequest request, String ggItemsToken, String ggBoName, String ggBoProvince, String ggBoCity, String ggBoAreaid, String ggBoDetailed, String ggBoHandle, String ggBoContact, Integer ggBoState, Integer ggBoLevel, String ggBoGender, String ggBoPosition, String ggBoTelephone, String ggBoFax, String ggBoMailbox, String ggBoQq, String ggBoWechat,String ggBoZipcode,String ggBoWebsite,String ggBoSource) throws Exception;

    /**
     * 商机批量  移除 商机移入信息
     */
    Object removebusinessAll(HttpServletResponse response, HttpServletRequest request, String listid);

    /**
     * 商机批量  删除
     */
    Object delectbusinessAll(HttpServletResponse response, HttpServletRequest request, String listid) throws Exception;
}
